home *** CD-ROM | disk | FTP | other *** search
- CALM.COM shows the current month and date from the DOS date. You may
- obtain a display for any month from January 1980 to December 2079 by
- specifying the month, day and year.
-
- CALM shows the current month with the current day marked if called
- with no arguments. The syntax for the argument is mm</dd/<yy>yy>.
- Angle brackets indicate optional parameters. Only the month is
- required for any month in the current year.
-
- Two or four digits may be supplied for the year. Two digit years
- below 80 are assumed to be 20yy and two digit years above 79 are
- assumed to be 19yy. If you specify a year greater than 2079 or less
- than 1980, what you get may not be correct for that month.
-
- This program was inspired by an idea in Peter Norton's Programmer's
- Guide to the IBMPC, which was a technique for getting the day of the
- week from the DOS setdate function for any given day in the DOS date
- range. I further developed this scheme to obtain the number of days
- in any month by finding the day of the week for day 1 of any month and
- the month following, then adding the week day difference to 28. Thus
- DOS does the hard work in calculating the start day of a month, leap
- months and number of days in a month. I felt a program which
- displayed a single month would be useful for meeting scheduling,
- vacation planning, etc. Of course this program could be extended to
- display a whole year and optionally send it to a printer, but a number
- of programs already exist which do that.
-
-
- Jack Aker - IBM San Jose Test Laboratory